export const workpositionList = [
  {
    type: "shelves",
    name: "物流企业",
    icon: "more-nor.png",
    src: "left-left-top.png",
    station: "1",
    storageId: "1",
    vehicleId: "1",
    component: "LeftLeftTop",
    height: "200px",
  },
  {
    type: "shelves",
    name: "车辆统计",
    icon: "cage-nor.png",
    src: "left-center-top.png",
    station: "1",
    storageId: "2",
    vehicleId: "7",
    component: "LeftCenterTop",
    height: "350px",
  },
  {
    type: "shelves",
    name: "园区发货量排名",
    icon: "text-nor.png",
    src: "left-right-top.png",
    station: "1",
    storageId: "3",
    vehicleId: "9",
    component: "LeftRightTop",
    height: "510px",
  },
  {
    type: "shelves",
    name: "网络货运统计",
    icon: "pallet-nor.png",
    src: "right-left-top.png",
    station: "2",
    storageId: "4",
    vehicleId: "11",
    component: "RightLeftTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "仓储统计",
    icon: "video-nor.png",
    src: "right-center-top.png",
    station: "2",
    storageId: "5",
    vehicleId: "17",
    component: "RightCenterTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "出口商品分类",
    icon: "cage-nor.png",
    src: "right-right-top.png",
    station: "2",
    storageId: "6",
    component: "RightRightTop",
    height: "430px",
  },
  {
    type: "shelves",
    name: "货量统计",
    icon: "photo-nor.png",
    src: "left-left-center.png",
    station: "3",
    storageId: "7",
    vehicleId: "5",
    component: "LeftLeftCenter",
    height: "300px",
  },
  {
    type: "shelves",
    name: "进出车次变化",
    icon: "bar-nor.png",
    src: "left-center-bottom.png",
    station: "3",
    storageId: "8",
    vehicleId: "8",
    component: "LeftCenterBottom",
    height: "510px",
  },
  {
    type: "shelves",
    name: "线路货量排名",
    icon: "map-nor.png",
    src: "left-right-bottom.png",
    station: "3",
    storageId: "9",
    vehicleId: "10",
    component: "LeftRightBottom",
    height: "350px",
  },
  {
    type: "shelves",
    name: "网货监管指标达成",
    icon: "photo-nor.png",
    src: "right-left-center.png",
    station: "4",
    storageId: "10",
    vehicleId: "15",
    component: "RightLeftCenter",
    height: "330px",
  },
  {
    type: "shelves",
    name: "集仓宝管理平台",
    icon: "shelves-nor.png",
    src: "right-center-center.png",
    station: "4",
    storageId: "11",
    vehicleId: "18",
    component: "RightCenterCenter",
    height: "180px",
  },
  {
    type: "shelves",
    name: "出口流向",
    icon: "map-nor.png",
    src: "right-right-bottom.png",
    station: "4",
    storageId: "12",
    vehicleId: "21",
    component: "RightRightBottom",
    height: "430px",
  },
  {
    type: "shelves",
    name: "货物分类统计（票）",
    icon: "shelves-nor.png",
    src: "left-left-bottom.png",
    station: "5",
    storageId: "13",
    vehicleId: "6",
    component: "LeftLeftBottom",
    height: "350px",
  },
  { type: "kong", name: "", station: "5", storageId: "14" },
  { type: "kong", name: "", station: "5", storageId: "15" },
  {
    type: "shelves",
    name: "货物保险统计",
    icon: "bar-nor.png",
    src: "right-left-bottom.png",
    station: "6",
    storageId: "16",
    vehicleId: "16",
    component: "RightLeftBottom",
    height: "330px",
  },
  {
    type: "shelves",
    name: "23年外贸进出口",
    icon: "word-nor.png",
    src: "right-center-bottom.png",
    station: "6",
    storageId: "17",
    vehicleId: "19",
    component: "RightCenterBottom",
    height: "480px",
  },
  { type: "kong", name: "", station: "6", storageId: "18" },
];

export const workpositionList1 = [
  {
    type: "shelves",
    name: "车辆统计",
    icon: "cage-nor.png",
    src: "left-center-top.png",
    station: "1",
    storageId: "2",
    vehicleId: "7",
    component: "LeftCenterTop",
    height: "350px",
  },
  {
    type: "shelves",
    name: "物流企业",
    icon: "more-nor.png",
    src: "left-left-top.png",
    station: "1",
    storageId: "1",
    vehicleId: "1",
    component: "LeftLeftTop",
    height: "200px",
  },
  {
    type: "shelves",
    name: "园区发货量排名",
    icon: "text-nor.png",
    src: "left-right-top.png",
    station: "1",
    storageId: "3",
    vehicleId: "9",
    component: "LeftRightTop",
    height: "510px",
  },
  {
    type: "shelves",
    name: "网络货运统计",
    icon: "pallet-nor.png",
    src: "right-left-top.png",
    station: "2",
    storageId: "4",
    vehicleId: "11",
    component: "RightLeftTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "仓储统计",
    icon: "video-nor.png",
    src: "right-center-top.png",
    station: "2",
    storageId: "5",
    vehicleId: "17",
    component: "RightCenterTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "出口商品分类",
    icon: "cage-nor.png",
    src: "right-right-top.png",
    station: "2",
    storageId: "6",
    component: "RightRightTop",
    height: "430px",
  },
  {
    type: "shelves",
    name: "进出车次变化",
    icon: "bar-nor.png",
    src: "left-center-bottom.png",
    station: "3",
    storageId: "8",
    vehicleId: "8",
    component: "LeftCenterBottom",
    height: "510px",
  },
  {
    type: "shelves",
    name: "货量统计",
    icon: "photo-nor.png",
    src: "left-left-center.png",
    station: "3",
    storageId: "7",
    vehicleId: "5",
    component: "LeftLeftCenter",
    height: "300px",
  },
  {
    type: "shelves",
    name: "线路货量排名",
    icon: "map-nor.png",
    src: "left-right-bottom.png",
    station: "3",
    storageId: "9",
    vehicleId: "10",
    component: "LeftRightBottom",
    height: "350px",
  },
  {
    type: "shelves",
    name: "网货监管指标达成",
    icon: "photo-nor.png",
    src: "right-left-center.png",
    station: "4",
    storageId: "10",
    vehicleId: "15",
    component: "RightLeftCenter",
    height: "330px",
  },
  {
    type: "shelves",
    name: "集仓宝管理平台",
    icon: "shelves-nor.png",
    src: "right-center-center.png",
    station: "4",
    storageId: "11",
    vehicleId: "18",
    component: "RightCenterCenter",
    height: "180px",
  },
  {
    type: "shelves",
    name: "出口流向",
    icon: "map-nor.png",
    src: "right-right-bottom.png",
    station: "4",
    storageId: "12",
    vehicleId: "21",
    component: "RightRightBottom",
    height: "430px",
  },
  { type: "kong", name: "", station: "5", storageId: "14" },
  {
    type: "shelves",
    name: "货物分类统计（票）",
    icon: "shelves-nor.png",
    src: "left-left-bottom.png",
    station: "5",
    storageId: "13",
    vehicleId: "6",
    component: "LeftLeftBottom",
    height: "350px",
  },
  { type: "kong", name: "", station: "5", storageId: "15" },
  {
    type: "shelves",
    name: "货物保险统计",
    icon: "bar-nor.png",
    src: "right-left-bottom.png",
    station: "6",
    storageId: "16",
    vehicleId: "16",
    component: "RightLeftBottom",
    height: "330px",
  },
  {
    type: "shelves",
    name: "23年外贸进出口",
    icon: "word-nor.png",
    src: "right-center-bottom.png",
    station: "6",
    storageId: "17",
    vehicleId: "19",
    component: "RightCenterBottom",
    height: "480px",
  },
  { type: "kong", name: "", station: "6", storageId: "18" },
];

export const workpositionList2 = [
  {
    type: "shelves",
    name: "车辆统计",
    icon: "cage-nor.png",
    src: "left-center-top.png",
    station: "1",
    storageId: "2",
    vehicleId: "7",
    component: "LeftCenterTop",
    height: "350px",
  },
  {
    type: "shelves",
    name: "物流企业",
    icon: "more-nor.png",
    src: "left-left-top.png",
    station: "1",
    storageId: "1",
    vehicleId: "1",
    component: "LeftLeftTop",
    height: "200px",
  },
  {
    type: "shelves",
    name: "园区发货量排名",
    icon: "text-nor.png",
    src: "left-right-top.png",
    station: "1",
    storageId: "3",
    vehicleId: "9",
    component: "LeftRightTop",
    height: "510px",
  },
  {
    type: "shelves",
    name: "仓储统计",
    icon: "video-nor.png",
    src: "right-center-top.png",
    station: "2",
    storageId: "5",
    vehicleId: "17",
    component: "RightCenterTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "网络货运统计",
    icon: "pallet-nor.png",
    src: "right-left-top.png",
    station: "2",
    storageId: "4",
    vehicleId: "11",
    component: "RightLeftTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "出口商品分类",
    icon: "cage-nor.png",
    src: "right-right-top.png",
    station: "2",
    storageId: "6",
    component: "RightRightTop",
    height: "430px",
  },
  {
    type: "shelves",
    name: "进出车次变化",
    icon: "bar-nor.png",
    src: "left-center-bottom.png",
    station: "3",
    storageId: "8",
    vehicleId: "8",
    component: "LeftCenterBottom",
    height: "510px",
  },
  {
    type: "shelves",
    name: "货量统计",
    icon: "photo-nor.png",
    src: "left-left-center.png",
    station: "3",
    storageId: "7",
    vehicleId: "5",
    component: "LeftLeftCenter",
    height: "300px",
  },
  {
    type: "shelves",
    name: "线路货量排名",
    icon: "map-nor.png",
    src: "left-right-bottom.png",
    station: "3",
    storageId: "9",
    vehicleId: "10",
    component: "LeftRightBottom",
    height: "350px",
  },
  {
    type: "shelves",
    name: "集仓宝管理平台",
    icon: "shelves-nor.png",
    src: "right-center-center.png",
    station: "4",
    storageId: "11",
    vehicleId: "18",
    component: "RightCenterCenter",
    height: "180px",
  },
  {
    type: "shelves",
    name: "网货监管指标达成",
    icon: "photo-nor.png",
    src: "right-left-center.png",
    station: "4",
    storageId: "10",
    vehicleId: "15",
    component: "RightLeftCenter",
    height: "330px",
  },
  {
    type: "shelves",
    name: "出口流向",
    icon: "map-nor.png",
    src: "right-right-bottom.png",
    station: "4",
    storageId: "12",
    vehicleId: "21",
    component: "RightRightBottom",
    height: "430px",
  },
  { type: "kong", name: "", station: "5", storageId: "14" },
  {
    type: "shelves",
    name: "货物分类统计（票）",
    icon: "shelves-nor.png",
    src: "left-left-bottom.png",
    station: "5",
    storageId: "13",
    vehicleId: "6",
    component: "LeftLeftBottom",
    height: "350px",
  },
  { type: "kong", name: "", station: "5", storageId: "15" },
  {
    type: "shelves",
    name: "23年外贸进出口",
    icon: "word-nor.png",
    src: "right-center-bottom.png",
    station: "6",
    storageId: "17",
    vehicleId: "19",
    component: "RightCenterBottom",
    height: "480px",
  },
  {
    type: "shelves",
    name: "货物保险统计",
    icon: "bar-nor.png",
    src: "right-left-bottom.png",
    station: "6",
    storageId: "16",
    vehicleId: "16",
    component: "RightLeftBottom",
    height: "330px",
  },
  { type: "kong", name: "", station: "6", storageId: "18" },
];

export const waitLoadList = [
  {
    type: "shelves",
    name: "物流企业",
    icon: "more-nor.png",
    src: "left-left-top.png",
    station: "",
    vehicleId: "1",
    component: "LeftLeftTop",
    height: "200px",
  },
  {
    type: "shelves",
    name: "货量统计",
    icon: "photo-nor.png",
    src: "left-left-center.png",
    station: "",
    vehicleId: "5",
    component: "LeftLeftCenter",
    height: "300px",
  },
  {
    type: "shelves",
    name: "货物分类统计（票）",
    icon: "shelves-nor.png",
    src: "left-left-bottom.png",
    station: "",
    vehicleId: "6",
    component: "LeftLeftBottom",
    height: "350px",
  },
  {
    type: "shelves",
    name: "车辆统计",
    icon: "cage-nor.png",
    src: "left-center-top.png",
    station: "",
    vehicleId: "7",
    component: "LeftCenterTop",
    height: "350px",
  },
  {
    type: "shelves",
    name: "进出车次变化",
    icon: "bar-nor.png",
    src: "left-center-bottom.png",
    station: "",
    vehicleId: "8",
    component: "LeftCenterBottom",
    height: "510px",
  },
  {
    type: "shelves",
    name: "园区发货量排名",
    icon: "text-nor.png",
    src: "left-right-top.png",
    station: "",
    vehicleId: "9",
    component: "LeftRightTop",
    height: "510px",
  },
  {
    type: "shelves",
    name: "线路货量排名",
    icon: "map-nor.png",
    src: "left-right-bottom.png",
    station: "",
    vehicleId: "10",
    component: "LeftRightBottom",
    height: "350px",
  },

  {
    type: "shelves",
    name: "网络货运统计",
    icon: "pallet-nor.png",
    src: "right-left-top.png",
    station: "",
    vehicleId: "11",
    component: "RightLeftTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "网货监管指标达成",
    icon: "photo-nor.png",
    src: "right-left-center.png",
    station: "",
    vehicleId: "15",
    component: "RightLeftCenter",
    height: "330px",
  },
  {
    type: "shelves",
    name: "货物保险统计",
    icon: "bar-nor.png",
    src: "right-left-bottom.png",
    station: "",
    vehicleId: "16",
    component: "RightLeftBottom",
    height: "330px",
  },
  {
    type: "shelves",
    name: "仓储统计",
    icon: "video-nor.png",
    src: "right-center-top.png",
    station: "",
    vehicleId: "17",
    component: "RightCenterTop",
    height: "180px",
  },
  {
    type: "shelves",
    name: "集仓宝管理平台",
    icon: "shelves-nor.png",
    src: "right-center-center.png",
    station: "",
    vehicleId: "18",
    component: "RightCenterCenter",
    height: "180px",
  },
  {
    type: "shelves",
    name: "23年外贸进出口",
    icon: "word-nor.png",
    src: "right-center-bottom.png",
    station: "",
    vehicleId: "19",
    component: "RightCenterBottom",
    height: "480px",
  },
  {
    type: "shelves",
    name: "出口商品分类",
    icon: "cage-nor.png",
    src: "right-right-top.png",
    station: "",
    vehicleId: "20",
    component: "RightRightTop",
    height: "430px",
  },
  {
    type: "shelves",
    name: "出口流向",
    icon: "map-nor.png",
    src: "right-right-bottom.png",
    station: "",
    vehicleId: "21",
    component: "RightRightBottom",
    height: "430px",
  },
];

export const emptyWorkpositionList = [
  { type: "kong", name: "", station: "1", storageId: "1" },
  { type: "kong", name: "", station: "1", storageId: "2" },
  { type: "kong", name: "", station: "1", storageId: "3" },
  { type: "kong", name: "", station: "2", storageId: "4" },
  { type: "kong", name: "", station: "2", storageId: "5" },
  { type: "kong", name: "", station: "2", storageId: "6" },
  { type: "kong", name: "", station: "3", storageId: "7" },
  { type: "kong", name: "", station: "3", storageId: "8" },
  { type: "kong", name: "", station: "3", storageId: "9" },
  { type: "kong", name: "", station: "4", storageId: "10" },
  { type: "kong", name: "", station: "4", storageId: "11" },
  { type: "kong", name: "", station: "4", storageId: "12" },
  { type: "kong", name: "", station: "5", storageId: "13" },
  { type: "kong", name: "", station: "5", storageId: "14" },
  { type: "kong", name: "", station: "5", storageId: "15" },
  { type: "kong", name: "", station: "6", storageId: "16" },
  { type: "kong", name: "", station: "6", storageId: "17" },
  { type: "kong", name: "", station: "6", storageId: "18" },
];

export const filterScreenData = (data) => {
  const left1 = data.filter(
    (item, index) => (index % 6 === 0) & (item.name !== "")
  );
  const left2 = data.filter(
    (item, index) => (index % 6 === 1) & (item.name !== "")
  );
  const left3 = data.filter(
    (item, index) => (index % 6 === 2) & (item.name !== "")
  );
  const right1 = data.filter(
    (item, index) => (index % 6 === 3) & (item.name !== "")
  );
  const right2 = data.filter(
    (item, index) => (index % 6 === 4) & (item.name !== "")
  );
  const right3 = data.filter(
    (item, index) => (index % 6 === 5) & (item.name !== "")
  );

  return {
    left1,
    left2,
    left3,
    right1,
    right2,
    right3,
  };
};
